#include "notebutton.h"
#include <QPainter>
#include <QDebug>

NoteButton::NoteButton(QWidget *parent)
    : QPushButton{parent}
{
}

void NoteButton::updateText(const QString &text)
{
#if 0
    QPainter painter(this);
    painter.drawText(0, 0, this->x() - 1, this->y() - 1,Qt::AlignRight, text);
#endif
    update();
}

void NoteButton::paintEvent(QPaintEvent *event)
{
    QPainter painter(this);
    painter.setPen(0xb26464);
    painter.setFont(QFont("Cascadia Mono", 16, QFont::Normal, QFont::StyleNormal));
    painter.drawText(100, 100, "test");

    event->accept();
}
